<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <title>店内搜索</title>
    <link rel="stylesheet" type="text/css" href="__CSS__/lib/normalize.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__/mui-3.6.1.min.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__/diannei.css" />
</head>

<body>
     <div class="mui-content">
     <form id="form" action="/Wx/Search/shopGoodsSearch">
        <input type="hidden" id="isLogin" name="isLogin" value="{$isLogin}">
        <input type="hidden" id="sId" name="shop_id" value="{$shop_id}">
        <div class="top-bar mui-row">
            <div class="return mui-col-sm-2 mui-col-xs-2" onclick="location.href='/Wx/Search/shopSearch/shop_id/{$shop_id}'"></div>

            <div class="top-middle mui-col-sm-8 mui-col-xs-8">
                <div class="s-top-middle">
                    <input type="search" name="key" required value="{$keyword}"  placeholder="" id="serachValue"/>
                </div>
            </div>
            <!-- <div id="search"  class="top-right mui-col-sm-2 mui-col-xs-2">搜索</div> -->
            <input style="border:none; background: none;" type="submit" value="搜索" class="top-right mui-col-sm-2 mui-col-xs-2" />
        </div>
    </form>
    </div>
    <div id="main">
        <if condition="!$list" >
          <div id="no-goods">
              <div class="my-box">
                  <img src="__IMG__/search/box.png"/>
              </div>
              <div class="b-no-cnt">
                  <p>抱歉！ 没有找到与 "<span class="no-cnt">没有符合</span>" 店铺或商品</p>
                  <p>你可以尝试更换关键词继续搜索</p>
              </div>
          </div>
          <else/>
        <div class="main-content">
            <div class="main-goods-section-r">
                <div class="main-goods-section-cnt">
                    <foreach name="list" item="v">
                    <div class="main-goods-section-r-lb">
                        <div class="main-goods-section-r-tp" onclick="location.href='/Wx/Goods/index?goodsId={$v['goodsId']}'" style="background-image:url('/{$v['goodsThums']}')"></div>
                        <div class="main-goods-section-r-ypz">
                            <div>{$v['goodsName']}</div>
                            <div class="ysj">月售{$v['yue_xiaoliang']}&nbsp;评价{$v['goods_appraises']}</div>
                            <div class="dj">¥{$v['shopPrice']}</div>
                        </div>
                        <if condition="$v['is_shuxing'] == 1">
                          <a class="guige" href="/Wx/Goods/index/goodsId/{$v['goodsId']}">选规格</a>
                          <else/>
                          <div class="sfq">
                            <div class="jian"></div>
                            <input class="v-jg" data-info='{$v.info}' type="number" max="{$v['goodsStock']}" readonly unselectable="on" disabled  value="" />
                            <div class="jia"></div>
                          </div>
                        </if>

                    </div>
                    </foreach>
                </div>
            </div>
        </div>
        </if>
    </div>
</body>
<script type="text/javascript" src="__JS__/mui.js"></script>
<script type="text/javascript" src="__JS__/jquery2.1.1.min.js"></script>
<script type="text/javascript" src="__JS__/cart.js"></script>
<script type="text/javascript" src="__JS__/diannei.js"></script>

</html>
